package com.zyj.exam_app.testPaper_manager.mapper;

import com.zyj.exam_app.testPaper_manager.bean.PaperQuestionBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PaperQuestionMapper {


    /**
     * 批量插入
     * @param paperQuestionList
     * @param testPaperId
     * @return
     */
    public int batchInsert(@Param("paperQuestionList") List<PaperQuestionBean> paperQuestionList, @Param("testPaperId") String testPaperId);

    /**
     * 根据试卷ID删除考题
     * @param testPaperId
     * @return
     */
    public int deleteByTestPaperId(@Param("testPaperId") String testPaperId);

    /**
     * 根据试卷ID查询试题
     * @param testPaperId
     * @return
     */
    public List<PaperQuestionBean> selectByTestPaperId(@Param("testPaperId") String testPaperId);

}
